package com.fulu.springboot;

import com.fulu.springboot.helloLog.HelloLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloLog helloLog;

    @GetMapping("/test")
    public String testLog() {
        helloLog.info("你好，自动装配！");
        return "log printed";
    }
}